import request from '@/utils/request'

//  属性名称列表
export function getPropertiesList(params) {
  return request({
    url: '/cloudApi/goods/goodsProperties/getPropertiesAll',
    method: 'get',
    params
  })
}
//  新增属性
export function saveProperties(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/insertProperties',
    method: 'post',
    data
  })
}

/**
 * 获取属性值
 */
export function getPropertiesValueList(params) {
  return request({
    url: '/cloudApi/goods/goodsProperties/getPropertiesValueList',
    method: 'get',
    params
  })
}

/**
 * 添加属性值
 */

export function savePropertyValue(data) {
  return request({
    url: '/cloudApi/goods/goodsProperties/insertPropertyValues',
    method: 'post',
    data
  })
}

